//
//  RGMainPageViewProtocol.h
//  RedGrass
//
//  Created by wukong on 2019/1/20.
//  Copyright © 2019年 hongcaosp. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "RGViewProtocol.h"

NS_ASSUME_NONNULL_BEGIN

@protocol RGMainPageViewProtocol <RGViewProtocol>

//刷新UI
-(void) reloadTableViewWithVedioList:(NSMutableArray *)list;
//更多视频的时候刷新
-(void) reloadTableViewWhenHaveMoreVedioWithVedioList:(NSMutableArray *)vedioList;

//加载数据后，自动播放视频
-(void) playWithFirstIndexWhenLoadSuccess;

//改变关注状态
-(void) changeFocusStatusWithIsFocus:(BOOL)isFocus currentCellIndex:(NSInteger)index;

//改变视频喜欢状态
-(void) changeFavoriteStatusWithIsFavorite:(BOOL)isFavorite currentCellIndex:(NSInteger)index;

//刷新评论列表
-(void) reloadCommentTableViewWithCommentList:(NSMutableArray *)commentList;

//点赞刷新某一section
-(void) reloadCommentTableViewSectionWithIndex:(NSInteger) index;
//点赞子评论，刷新当前cell
-(void) reloadCommentTableViewCellWithIndexPath:(NSIndexPath *)path;

//重置评论标示标记
-(void) resetCommentStatusWhenPublicSuccess;

//停止评论header的loading状态

-(void) commentMjHeaderEndLoading;

//停止评论footer的loading状态
-(void) commentMjFooterEndLoading;

//设置footer的状态
-(void) changeCommentMjFooterStatusWithNoMoreData;

@optional

//停止header的loading状态

-(void) viewMjHeaderEndLoading;

//停止footer的loading状态
-(void) viewMjFooterEndLoading;

//设置footer的状态
-(void) viewMjFooterStatusWithNoMoreData;

//dismiss toolbarView
-(void) dismissToolBarView;

//不能给自己的评论点赞
-(void) showAlertWhenFarvoriteSelfComment;
//不能评论自己的评论
-(void) showAlertWhenCommentSelfComment;


//评论成功 或者评论请求成功后，更新视图里面的评论数,
-(void) updateCommentCountsWhenCommentSuccessWithCellIndex:(NSInteger)cellIndex;

//转发成功后更新转发数
-(void)updateforwardCountsWhenShareSuccessWithCellIndex:(NSInteger)cellIndex;


@end

NS_ASSUME_NONNULL_END
